{*<table width="210" cellspacing="0" cellpadding="0" border="0">
    <tbody>
    <tr>
        <td valign="top" height="31" align="center" style="background:url('styles/images/login/16.png');color:#C16A29;padding-top:2px; font-size: 8pt;">
            <!-- <bt> -->
            <!--<s5158>-->
            <em>Форма входа</em>
            <!--</s>-->
            <!-- </bt> -->
        </td>
    </tr>
    <tr>
        <td style="background:url('styles/images/login/17.jpg');padding:0 15px 0 15px;">
            <!-- <bc> -->
            <script type="text/javascript"{literal}>
            sendFrm = function() {
            $($('#bunn_login_form')).css({
            width: '180px',
            height: '90px',
            display: ''
            }).html('<div align="left" style="padding:5px;"><div class="myWinLoad"></div></div>');
        setTimeout("$('#bunn_login_form').css('display','none');",'3000');
        var login = $("#login").val();
        var pass = $("#pass").val();
        $.ajax({
            type: "POST",
            url: "index.php?page=login",
            data: {'username': login,'password':pass},
            /*dataType: 'json',*/
            success: function(data, textStatus, jqXHR) {
                if(data.redirect)
                {
                    location=data.redirect;
                }
                else
                {
                    $('#bunn_login_form').html("<div class='alert alert-error'>"+data.err_text+"</div>");
                }
            }
        });
        }
            </script{/literal}>
            <div align="center" id="uidLogButton">


                <div id="bunn_login_form" style="border: 1px solid rgb(204, 204, 204); background: url(&quot;http://s21.ucoz.net/img/fr/g.gif&quot;) repeat scroll 0% 0% transparent; z-index: 82; position: absolute;"></div>

                <form onsubmit="sendFrm();return false;" style="margin:0" method="post" class="form-horizontal">
                    <table width="100%" cellspacing="1" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td width="20%" nowrap="nowrap" class="">
                                Логин:
                            </td>
                            <td>
                                <input id="login" type="text" maxlength="50" style="width:100%; height: 30px; font-size: 10px;" size="20" name="user">
                            </td>
                        </tr>
                        <tr>
                            <td class="">
                                Пароль:
                            </td>
                            <td>
                                <input id="pass" type="password" maxlength="15" style="width:100%; height: 25px;" size="20" name="password">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <table width="100%" cellspacing="1" cellpadding="0" border="0">
                        <tbody>
                        <tr>

                            <td valign="top" align="center">
                                <br>
                                <button type="submit" class="btn btn-mini">Вход</button>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div style="font-size:7pt;text-align:center;">
                                    <a onclick="{literal}new _uWnd('Prm','Напоминание пароля',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});return false;{/literal}"
                                       rel="nofollow" href="javascript://">Забыл пароль</a>
                                    |
                                    <a href="index.php?page=start_reg">Регистрация</a>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <input type="hidden" value="2" name="a">
                    <input type="hidden" value="1" name="ajax">
                    <input type="hidden" value="225" name="rnd">
                </form>





            </div>

            <!-- </bc> -->
        </td>
    </tr>
    <tr>
        <td>
            <img border="0" src="styles/images/index/img/small/18.png">
        </td>
    </tr>
    </tbody>
</table>*}
<!-- <block login> -->
<table border="0" cellpadding="0" cellspacing="0" width="210">
<tr>
    <td height="31" style="background:url('styles/images/login/16.gif');color:#C16A29;padding-top:2px;"
        align="center" valign="top">
        <!-- <bt> -->
        <!--<s5158>-->
        Форма входа
        <!--</s>-->
        <!-- </bt> -->
    </td>
</tr>
<tr>
    <td style="background:url('styles/images/login/17.jpg');padding:0 15px 0 15px;">
        <!-- <bc> -->
        <style type="text/css">{literal}

            .myWinLoad {margin:0;width:31px;height:31px;background:url('styles/images/login/ajax/ajax.gif') no-repeat 0 0;}
            .myWinLoadS {margin:0;width:16px;height:16px;background:url('styles/images/login/ajax/ajax-loader.gif') no-repeat 0 0;}
            .myWinLoadSD {margin:0;width:16px;height:16px;background:url('styles/images/login/ajax/ok.png') no-repeat 0 0;}
            .myWinLoadSF {margin:0;width:16px;height:16px;background:url('styles/images/login/ajax/er.png') no-repeat 0 0;cursor:help;}
            #err_text{font-size: 15px; }
        .input_text {
            height: 30px!important;
        }

        </style>
        <script type="text/javascript">
        function _uGetOffset(c) {
            if (!c) {
                return {
                    left: 0,
                    top: 0
                }
            }
            var b = c.offsetLeft;
            var a = c.offsetTop;
            if (!b && !a && c.offsetParent == null) {
                b = parseInt(c.style.left);
                a = parseInt(c.style.top)
            } else {
                while ((c = c.offsetParent) != null) {
                    b += c.offsetLeft;
                    a += c.offsetTop
                }
            }
            return {
                left: b,
                top: a
            }
        }

            $(document).ready(function() {
                login_funct = function(){
                        var o = $('#login_form')[0],
                                pos = _uGetOffset(o),
                                o2 = $('#error_div')[0];
                        document.body.insertBefore(o2, document.body.firstChild);
                        $(o2).css({
                            top: (pos['top']) + 'px',
                            left: (pos['left']) + 'px',
                            width: o.offsetWidth + 'px',
                            height: o.offsetHeight + 'px',
                            display: ''
                        }).html('<div align="left" style="padding:5px;"><div class="myWinLoad"></div></div>');

                    $.ajax({
                        url: 'index.php?page=login',             // указываем URL и
                        type: 'POST',
                        data: $('#login_form').serialize(),
                        dataType : "json",                     // тип загружаемых данных
                        success: function (data, textStatus) { // вешаем свой обработчик на функцию success
                            if(data.redirect)
                            {
                                $('#error_div').html('<div align="left" style="padding:5px;"><div class="myWinLoadSD"></div></div>');
                                setTimeout("window.location.href='"+data.redirect+"'",2000);
                            }
                            else
                            {
                                $('#error_div').html('<div align="left" style="padding:5px;"><div class="myWinLoadSF"></div><div class="label" style="font-weight:normal;">'+data.err_text+'</div></div>');
                                setTimeout("$('#error_div').css({display:'none'});",1000);
                            }
                        }
                    });
                }
            });


        </script>{/literal}
        <div id="baseLogForm">
            <div id="error_div" style="border:1px solid #CCCCCC;position:absolute;z-index:82;background:url('http://s70.ucoz.net/img/fr/g.gif');display:none;">
            </div>
            <form id="login_form" method="post" style="margin:0" onsubmit="login_funct();return false;">
                <table border="0" cellspacing="1" cellpadding="0" width="100%">
                    <tr>
                        <td width="20%" nowrap="nowrap">
                            Логин:
                        </td>
                        <td>
                            <input id="uname" type="text" name="username" value="" size="20" style="width:100%;" maxlength="20" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Пароль:
                        </td>
                        <td>
                            <input type="password" name="password" size="20" style="width:100%" maxlength="20" />
                        </td>
                    </tr>
                </table>
                <table border="0" cellspacing="1" cellpadding="0" width="100%">
                    <tr>
                        <td align="right" valign="top">
                            <button class="btn btn-mini" type="submit">Вход</button>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="font-size:7pt;text-align:center;">
                                <a href="javascript://" rel="nofollow">Забыл пароль</a>
                                |
                                <a href="index.php?page=start_reg">Регистрация</a>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <!-- </bc> -->
    </td>
</tr>
<tr>
    <td>
        <img src="styles/images/login/18.gif" border="0">
    </td>
</tr>
</table>
<!-- </block login> -->